package com.blackto.lib.eventbus;

public class SubscriptionInfo {
    private final Class<?> handlerType;

    private SubscriptionInfo(Class<?> handlerType) {
        this.handlerType = handlerType;
    }

    public Class<?> getHandlerType() {
        return handlerType;
    }

    public static SubscriptionInfo typed(Class<?> handlerType) {
        return new SubscriptionInfo(handlerType);
    }
}
